﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Smartec.Accounts.Camel.AMS.WebApp.Models;
using Smartec.Accounts.Camel.AMS.Model.Managers;

namespace Smartec.Accounts.Camel.AMS.WebApp.Controllers
{
    public class ContactUsController : Controller
    {
        //
        // GET: /ContactUs/

        public ActionResult Index()
        {
            return View();
        }

        [HttpPost]
        public ActionResult Index(ContactUsModel contactus)
        {


            MailServices.SendEmail(contactus.Email, "ContactUs " + contactus.Name, contactus.Body, false);
            return View("index");
        }

    }
}
